@rem
@rem ----------------------------------------------------------------------------
@rem  MailClientSdk init script for Windows, version 1.0.0
@rem
@rem ----------------------------------------------------------------------------
@rem
@echo off

call .\buildSdk.bat
cd ..\
set TEMP_PATH=".\build_essential\mail_client_sdk\build\default\outputs\default\mail_client_sdk.har"
set OUTPUT_PATH=".\sample\sdk\mail_client_sdk.har"

@rem sdk目录如果不存在,需要创建先.
if not exist ".\sample\sdk" (
  mkdir ".\sample\sdk"
)

@REM 将har包拷贝到sample中
if exist "%TEMP_PATH%" (
  echo copying...
  copy "%TEMP_PATH%" "%OUTPUT_PATH%"
  echo done.
) else (
  echo build failed.
)